<template>
    <div>
        <search></search>
        <tree :items="items"></tree>
        <tab-bar></tab-bar>
    </div>
</template>

<script>
import Tree from '../components/tree';
export default {
    name: "list",
    data (){
        return {
            items: []
        }
    },
    components: {
        Tree
    },
    created() {
        this.onLoad();
    },
    methods: {
        onLoad: function () {
            var this_ = this;
            this_.$api.main.GetCategory().then(res => {
                console.log(res.data);
                this_.items = res.data.data;
            })
        },
    }
}
</script>
<style scoped>

</style>
